// gcc f1_main.cpp -o f1_main
//valgrind  --trace-children=yes --tool=callgrind --callgrind-out-file=callgrind.out.f1_main ./f1_main
//kcachegrind callgrind.out.f1_main

//#include <stdio.h>
double calcSum(double inLs[], int LsSize){
	double sum=0;
	for(int i=0; i < LsSize; i++){
		sum+=inLs[i];
	}
	return sum;
}
int main(int argc,char** argv){
	double arr[]={5.6, 8.4, 0.8, 1.2};
	int arrSize=sizeof(arr)/sizeof(arr[0]);
	double sum=calcSum(arr,arrSize);
	//printf("%f\n",sum);	return 0;}